<style>
<!--
.frontlist td
{
text-align:left;
font-size:14px;
}
.frontlist td a:link    {color:#00527A;}
.frontlist td a:visited {color:blue;}
.frontlist td a:hover   {color:red;}
.frontlist td a:active  {color:yellow;}
.frontlist td a {text-decoration:none;font-family:"Times New Roman", Times, serif;}
.frontlist th
{
background-color:green;
height:30px;
font-size:20px;
text-indent:7px;
}
.frontlist
{
width:100%;
color:white;
margin-left:10px;
margin-top:0px;
}
-->
</style>
<?php 
	defined('_JEXEC') or die('Restricted access'); 
	AdminUIHelper::startAdminArea ();
	$donviList=$this->donviList;
	$phongbanList=$this->phongbanList;
?>
<form name='adminFront' class="tableFront" action='index.php?option=com_svquanlycanbo&view=canbo' method='post'>
	<div id="editcell">
		<table class='frontlist'>
			<thead>
				<tr>
					<th width="100%">   Danh sach can bo</th>
				</tr>
			</thead>
		</table>
		<!-- --------------------------------- -->
	<table>
		<tbody><tr>
				<td nowrap="nowrap">
					<?php 
					//echo JHTML::_('select.genericlist',$this->array,'age_id','class="inputbox", onchange="submitform()"','key','text',$value['age']); 
					echo $this->list['donvi'];
					echo $this->list['phongban'];
					echo ' Number record : '.$this->total;
					?> 
				</td>
		</tr>
		</tbody>
	</table>
		<!-- ----------------------------------- -->
	<table class='frontlist'>
			<tbody style="color:blue">
			<tr><td><h3><?php echo JText::_('Doi ngu can bo bao gom : '); ?></h3></td></tr>
				<?php 
					foreach($this->chucdanhList as $record)
					{
						echo '<tr class="row'.$i.'">';
							echo '<td width="150" style="text-indent:20px;">';
									//--------------
									$i=0;
									foreach($this->canboList as $re)
									{
										if($re->cd_id==$record->cd_id) $i++;
									}
									//--------------
							echo '<b><> '.$record->cd_ten.' : '.$i.'</b>';
							echo '</td>';
						echo '</tr>';	
					}

				?>
			</tbody>
		</table>
		<br/>
		<!-- ----------------------------------- -->
				<?php 
					foreach($this->canboList as $record)
					{
						echo '<table class="frontlist" style="width:45%;float:left"><tbody>';
						echo '<tr><td></td></tr>';
						echo '<tr class="row'.$i.'">';
							echo '<td style="width:100px;height:100px;"><img style="width:100px;height:100px;" src="../administrator/components/com_svquanlycanbo/uploads/'.$record->cb_hinhanh.'" /></td>';
							echo '<td width="150">
									<a href="index.php?option=com_svquanlycanbo&view=canbo&id='.$record->cb_id.'" ><div style="font-size:11px">'.$record->cd_ten.'</div>  <b>'.$record->cb_ten.'</b></a>
							        <p>'.$record->cv_ten.'</p>
							         <p>Email : '.$record->cb_email.'</p>
							         <p>Phone : '.$record->cb_sodienthoai.'</p>';
							echo '</td>';
						echo '</tr>';	
						echo '<tr><td><a href="index.php?option=com_svquanlycanbo&view=canbo&id='.$record->cb_id.'" >---> Read more...</a></td></tr>';
						echo '</tbody></table>';
					}

				?>
	</div>
</form>